package com.welike.shibo.eneity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * Created by fangyu on 2019-08-18.
 */
@Data
@TableName(value = "zan")
public class Zan {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 赞类型，1-作品，2-评论
     */
    @TableField(value = "zan_type")
    private Integer zanType;

    /**
     * 被赞的对象id
     */
    @TableField(value = "zan_obj_id")
    private String zanObjId;

    /**
     * 赞的人id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    public static final String COL_ID = "id";

    public static final String COL_ZAN_TYPE = "zan_type";

    public static final String COL_ZAN_OBJ_ID = "zan_obj_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_CREATE_TIME = "create_time";
}